/**
 * Created by Noir on 2/6/14.
 */
'use strict'

angular.module('2order.resource').factory('Charts',['$resource',function($resource){
    return $resource('/api/charts/:id',{
        id:'@_id'
    },{
        update:{
            method: 'PUT'
        },
        retrieveAllDetails:{
            method: 'GET',
            url: '/api/charts/findAllDetails/:chartId'
        },
        addItem:{
            method: 'POST',
            url: '/api/charts/addDetail/:chartId'
        }
    });
}]);
